package com.financing.platform.dao.impl;


import java.sql.SQLException;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.financing.platform.dao.IFaUserBlacklistDao;
import com.financing.platform.dto.FaUserBlacklistDTO;
import com.financing.platform.util.SqlName;
import com.financing.platform.vo.FaUserBlacklistVO;

@Repository("faUserBlacklistDaoImpl")
@SuppressWarnings("unchecked")
public class FaUserBlacklistDaoImpl extends BaseDaoImpl  implements IFaUserBlacklistDao {


	@Override
	public int addFaUserBlacklist(FaUserBlacklistDTO faUserBlacklistDTO)
			throws SQLException {
		return (Integer) this.sqlMapClient.insert(SqlName.addBlacklist, faUserBlacklistDTO);
	}


	@Override
	public List<FaUserBlacklistVO> queryFaUserBlacklist(FaUserBlacklistVO faUserBlacklistVO) throws SQLException {
		return this.sqlMapClient.queryForList(SqlName.queryBlacklist,faUserBlacklistVO);
	}

	@Override
	public int queryFaUserBlacklistCount(FaUserBlacklistVO faUserBlacklistVO)
			throws SQLException {
		return (Integer) this.sqlMapClient.queryForObject(SqlName.queryBlacklistCount,faUserBlacklistVO);
	}

	@Override
	public List<FaUserBlacklistDTO> queryBlacklistByUserId(
			FaUserBlacklistVO faUserBlacklistVO) throws SQLException {
		return this.sqlMapClient.queryForList(SqlName.queryBlacklistByUserId,faUserBlacklistVO);
	}

	
}
